package com.xyzpool.test;


import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class StringReplaceTestor {
	public static void main(String[] args) {
		String str = "ORDER IMPORT FROM AMAZONS\r\n\r\n\r\n\r\nORDER IMPORT FROM AMAZON";
		Pattern pattern = Pattern.compile("");
		Matcher matcher = pattern.matcher(str);
		System.out.println("TO:"+matcher.replaceAll(""));
	}
//	public static void main(String[] args) {
//		Pattern pattern = Pattern.compile("(\r\n)*a*(\r\n)*");
//		Matcher matcher = pattern.matcher("aaaa\r\nbnna\r\naa\r\nba\r\nab");
//		System.out.println(matcher.replaceAll("-"));
//	}
}
